package chapter67;

public class Dog extends Pet {
	private String strain = "聪明的拉布拉多犬";
	
	public Dog(){
		
	}
	
	public Dog(String name, String strain){
		super(name);
		this.strain = strain;
	}

	// 给strain赋值
	public void setStrain(String strain) {
		this.strain = strain;
	}

	// 获取strain值
	public String getStrain() {
		return this.strain;
	}
	
	//输出狗狗的信息
	public void showInfo() {
		super.showInfo();
		System.out.println("，我是一只"+ this.getStrain());
	}
	
	public void toHospital(){
		System.out.println("打针，吃药！");
		this.setHealth(60);
	}
	
	public void toEat(){
		System.out.println("吃骨头");
		this.health += 3;
	}
	
	//狗狗特有的方法：叼飞碟
	public void catchFlyingDisk(){
		System.out.println("狗狗叼飞碟");
	}

}
